import request from '@/utils/request'
// 统计-基本信息
export const baseInfo = (data: {}) => {
  return request({
    url: '/scrm-api/console/market/census/base-info',
    method: 'GET',
    params: data
  })
}
// 统计-数据总览
export const census = (data: {}) => {
  return request({
    url: '/scrm-api/console/market/census/data',
    method: 'POST',
    data
  })
}
// 统计-加购TOP10
export const addShop = (data: {}) => {
  return request({
    url: '/scrm-api/console/market/census/touch-detail',
    method: 'POST',
    data
  })
}
// 统计-导出明细
export const expDetails = (data: {}) => {
  return request({
    url: '/scrm-api/console/market/census/touch-detail-import',
    method: 'POST',
    data
  })
}
// 统计-导出明细
export const expSmsDetails = (data: {}) => {
  return request({
    url: 'scrm-api/console/market/census/touch-detail-sms-import',
    method: 'POST',
    data
  })
}
// 统计-触达明细(短信
export const touchDetailSms = (data: {}) => {
  return request({
    url: 'scrm-api/console/market/census/touch-detail-sms',
    method: 'POST',
    data
  })
}
// 统计-企微员工预览
export const qwView = (data: {}) => {
  return request({
    url: '/scrm-api/console/market/message/info',
    method: 'GET',
    params: data
  })
}
// 统计-top10 发送
export const batchSend = (data: any) => {
  return request({
    url: '/scrm-api/console/market/mass-message',
    method: 'POST',
    data
  })
}
